using System;

namespace goal
{

    class Program
    {
        static void Main(string[] args)
        {
             
            int a = 0, b = 0;
            int pointsA = 0, pointsB = 0;
            int totalA = 0, totalB = 0;

            for (int i = 0; i < 10; i++)
            {
                Console.WriteLine("Insert Player 1 goals for match N {0}: ", i + 1);    //input goals data
                a = int.Parse(Console.ReadLine());
                Console.Clear();
                Console.WriteLine("Insert Player 2 goals for match N {0}: ", i + 1);
                b = int.Parse(Console.ReadLine());
                Console.Clear();
                {
                    if (a > b)                  //assigning scores
                        pointsA = 2;
                    else
                  if (a == b)
                    {
                        pointsA = 1;
                        pointsB = 1;
                    }
                    else
                  if (a > b)
                        pointsB = 2;
                    totalA = totalA + pointsA;       //summing up points
                    totalB = totalB + pointsB;
                }
               

            }
            Console.WriteLine("Player 1 Points : " + totalA);
            Console.WriteLine("Player 2 Points : " + totalB);
            if (totalA > totalB)
                Console.WriteLine("Player 1 is the winner with " + totalA + " points");
            else
                Console.WriteLine("Player 2 is the winner with " + totalB + " points");

            Console.ReadKey();
        }
        
    }
}

